<?php if (!empty($cities)) :?>
<div class="recommended">
	<h3 class="menu-list1"><?php echo __l('Filter by City');?></h3>
	<ul class="side-menu clearfix order-list">
		<?php foreach ($cities as $city) :?>
		<?php $class = (!empty($this->request->params['named']['city']) && $this->request->params['named']['city'] == $city['City']['slug']) ? ' class="active"' : null; ?>
		<li <?php echo $class;?>><?php echo $this->Html->link($city['City']['name'], array('controller' => 'projects', 'action' => 'index', 'city' => $city['City']['slug']), array('title' => $city['City']['name']));?></li>
		<?php endforeach;?>
	</ul>
</div>
<?php endif;?>